home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / Xm / XmeToVerticalPixels.z / XmeToVerticalPixels
Text File  |  1998-10-30  |  6KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmeeeeTTTTooooVVVVeeeerrrrttttiiiiccccaaaallllPPPPiiiixxxxeeeellllssss((((3333XXXX))))   UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV   XXXXmmmmeeeeTTTTooooVVVVeeeerrrrttttiiiiccccaaaallllPPPPiiiixxxxeeeellllssss((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmeeeeTTTTooooVVVVeeeerrrrttttiiiiccccaaaallllPPPPiiiixxxxeeeellllssss - Converts from real-world dimensions to
  10.           pixels
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           #include <Xm/XmP.h>
  14.           XXXXmmmmIIIImmmmppppoooorrrrttttOOOOppppeeeerrrraaaattttoooorrrr XXXXmmmmeeeeTTTTooooVVVVeeeerrrrttttiiiiccccaaaallllPPPPiiiixxxxeeeellllssss(
  15.           WWWWiiiiddddggggeeeetttt wwwwiiiiddddggggeeeetttt,
  16.           iiiinnnntttt ooooffffffffsssseeeetttt,
  17.           XXXXttttAAAArrrrggggVVVVaaaallll ****vvvvaaaalllluuuueeee);
  18.  
  19.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  20.           This page documents Motif 2.1.
  21.  
  22.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  23.           XXXXmmmmeeeeTTTTooooVVVVeeeerrrrttttiiiiccccaaaallllPPPPiiiixxxxeeeellllssss converts a vertical distance from a
  24.           real-world dimensional unit (such as thousandths of an inch)
  25.           to pixels.  This conversion is based on the vertical
  26.           resolution of the screen.  The choice of real-world
  27.           dimensional unit is stored in the XXXXmmmmNNNNuuuunnnniiiittttTTTTyyyyppppeeeeresource.
  28.  
  29.           For example, suppose that _w_i_d_g_e_t has an XXXXmmmmNNNNuuuunnnniiiittttTTTTyyyyppppeeee resource
  30.           value of XXXXmmmm1111000000000000TTTTHHHH____IIIINNNNCCCCHHHHEEEESSSS. If the input _v_a_l_u_e were 2000
  31.           (meaning 2000/1000 inches or 2 inches), then
  32.           XXXXmmmmeeeeTTTTooooVVVVeeeerrrrttttiiiiccccaaaallllPPPPiiiixxxxeeeellllssss determines how many vertical pixels fall
  33.           within 2 inches. Because different screens have different
  34.           resolutions, the returned _v_a_l_u_e might be 160 pixels on one
  35.           screen and 200 pixels on another.
  36.  
  37.           Typically, your widget will call this function in a
  38.           synthetic resource record.
  39.  
  40.           XXXXmmmmeeeeTTTTooooVVVVeeeerrrrttttiiiiccccaaaallllPPPPiiiixxxxeeeellllssss is an XXXXmmmmIIIImmmmppppoooorrrrttttPPPPrrrroooocccc.
  41.  
  42.           _w_i_d_g_e_t    Specifies the widget.
  43.  
  44.           _o_f_f_s_e_t    Specifies the offset (in bytes) of a synthetic
  45.                     resource field in the widget record.
  46.  
  47.           _v_a_l_u_e     Specifies a value in the XXXXmmmmNNNNuuuunnnniiiittttTTTTyyyyppppeeee real-world
  48.                     dimensional units used by _w_i_d_g_e_t and returns a
  49.                     value in pixels.
  50.  
  51.      RRRREEEETTTTUUUURRRRNNNN
  52.           Returns one of the following XXXXmmmmIIIImmmmppppoooorrrrttttOOOOppppeeeerrrraaaattttoooorrrr values:
  53.  
  54.           XXXXmmmmSSSSYYYYNNNNTTTTHHHHEEEETTTTIIIICCCC____NNNNOOOONNNNEEEE
  55.                     The caller of the XXXXmmmmIIIImmmmppppoooorrrrttttPPPPrrrroooocccc is not responsible
  56.                     for copying the converted _v_a_l_u_e into the resource
  57.                     specified by _o_f_f_s_e_t.
  58.  
  59.           XXXXmmmmSSSSYYYYNNNNTTTTHHHHEEEETTTTIIIICCCC____LLLLOOOOAAAADDDD
  60.  
  61.  
  62.  
  63.      Page 1                                         (printed 10/24/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmeeeeTTTTooooVVVVeeeerrrrttttiiiiccccaaaallllPPPPiiiixxxxeeeellllssss((((3333XXXX))))   UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV   XXXXmmmmeeeeTTTTooooVVVVeeeerrrrttttiiiiccccaaaallllPPPPiiiixxxxeeeellllssss((((3333XXXX))))
  71.  
  72.  
  73.  
  74.                     The caller of the XXXXmmmmIIIImmmmppppoooorrrrttttPPPPrrrroooocccc is responsible for
  75.                     copying the converted _v_a_l_u_e into the resource
  76.                     specified by _o_f_f_s_e_t.
  77.  
  78.           Motif's synthetic resource mechanism is typically the caller
  79.           of XXXXmmmmeeeeTTTTooooVVVVeeeerrrrttttiiiiccccaaaallllPPPPiiiixxxxeeeellllssss.  Therefore, if XXXXmmmmeeeeTTTTooooVVVVeeeerrrrttttiiiiccccaaaallllPPPPiiiixxxxeeeellllssss
  80.           returns XXXXmmmmSSSSYYYYTTTTHHHHEEEETTTTIIIICCCC____LLLLOOOOAAAADDDD, Motif synthetic resource mechanism
  81.           will take care of copying (and casting) _v_a_l_u_e into the
  82.           resource symbolized by _o_f_f_s_e_t.
  83.  
  84.      RRRREEEELLLLAAAATTTTEEEEDDDD
  85.           XXXXmmmmeeeeFFFFrrrroooommmmHHHHoooorrrriiiizzzzoooonnnnttttaaaallllPPPPiiiixxxxeeeellllssss(3), XXXXmmmmeeeeFFFFrrrroooommmmVVVVeeeerrrrttttiiiiccccaaaallllPPPPiiiixxxxeeeellllssss(3), and
  86.           XXXXmmmmeeeeTTTTooooHHHHoooorrrriiiizzzzoooonnnnttttaaaallllPPPPiiiixxxxeeeellllssss(3).
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                         (printed 10/24/98)
  130.  
  131.  
  132.  
  133.